﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SolutionModel;
using SFast.DB;
using SolutionDAL;

namespace SolutionBLL
{
    public class T_ErrorBLL
    {
        #region 添加错误 信息
        /// <summary>
        /// 添加错误 信息
        /// </summary>
        /// <param name="error"></param>
        public void Add(T_Error error)
        {
            T_ErrorDAL dal = new T_ErrorDAL();
            dal.Add(error);
        }
        #endregion

        #region 错误列表
        /// <summary>
        /// 错误列表
        /// </summary>
        /// <param name="size"></param>
        /// <returns></returns>
        public Pagination<T_Error> GetError(int size)
        {
            T_ErrorDAL dal = new T_ErrorDAL();
            return dal.GetError(size);
        }
        #endregion

        #region 通过ID获取错误 详细信息
        /// <summary>
        /// 通过ID获取错误 详细信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List<T_Error> GetErrorByID(int id)
        {
            T_ErrorDAL dal = new T_ErrorDAL();
            return dal.GetErrorByID(id);
        }
        #endregion
    }
}
